﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using RLAWEB.Models;
using RLAWEB.RLAServiceReference;

namespace RLAWEB
{
    public partial class _Default : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            setLabel();
        }

        protected void setLabel()
        {
            User user;
            if (Request.Cookies[FormsAuthentication.FormsCookieName] != null)
            {
                user = Helper.GetLoggedInUser(Request.Cookies[FormsAuthentication.FormsCookieName]);
                myLabel.Text = user.ProfileName;
            }
            

        }
    }
}